/**
 * 
 * @desc   判断是否为dom
 * @param  {dom}  str
 * @return {Boolean} 
 */
function isDom(obj){
	var isdom = (typeof HTMLElement ==='object')?function(){
		return (obj instanceof HTMLElement);
	}:function(){
		return obj && (typeof obj ==='object') && (obj.nodeType===1) && (typeof obj.nodeName==='string');
	}
	return !!isdom();
}


module.exports = isDom;